import request from '@/utils/request';
import { AxiosPromise } from 'axios';
import { PermissionQuery} from './types'
export function getPermissions(query:PermissionQuery):AxiosPromise<any> {
    return request({
      url: '/api/permission-management/permissions',
      method: 'get',
      params: query
    })
  }

  export function updatePermissions(query:PermissionQuery, payload:any):AxiosPromise<any>{
    return request({
      url: `/api/permission-management/permissions`,
      method: 'put',
      params: query,
      data: payload
    })
  }
  
